home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
system
/
fh_dz32.zip
/
DZ.TXT
< prev
Wrap
Text File
|
1994-12-19
|
4KB
|
136 lines
DZ v 3.2
Fredrik Holmberg
94-12-19
Introduction:
DZ shows the size of subdirectories in the current directory. Every
subdirectory will be completely scanned for files. For example
was the following output created by DZ in my D:\SRC directory.
Mb 0 Kb 2 Mb 4 Mb 6 Mb 8 Mb 10 Mb
COMM 0.0 │ │ │ │ │ │ │
TSR 0.0 │ │ │ │ │ │ │
TMP 0.1 │ │ │ │ │ │ │
MISC 0.1 │ │ │ │ │ │ │
SYS 0.2 ▒ │ │ │ │ │ │
SB 0.2 ▒ │ │ │ │ │ │
MULTITSK 0.7 ▒▒▒ │ │ │ │ │ │
ASM 0.9 ▒▒▒▒ │ │ │ │ │ │
GRAPH 1.5 ▒▒▒▒▒▒▒ │ │ │ │ │ │
PCGPE 3.0 ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ │ │ │ │
SWG 8.7 ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ │
13 dir 15.85 Mb v3.2 Fredrik Holmberg 94-12-19
Installation:
The file DZ.EXE should be put somewhere in the PATH, like in the
\DOS directory.
Program parameters:
There are several ways to alter the function of DZ. Parameters is
recieved by DZ from the commandline and from any DZPARAMS environ
string. Following parameters are allowed.
You may use /parameter instead of -parameter.
Sorting : -d -r -u determines the sorting order
-d Smallest directory first, default
-r Reversed, smallest directory last
-u Unsorted, DOS FAT order.
Scale : -sA -sa -sM -so -sk determines the scale of the figure.
One row is 10 characters wide, see the figure in the
Introduction.
-sA Autoscale with nice numbers, default
-sa Autoscale, the largest directory will almost fill
the screen
-sM Megabyte scale, one row equals 1 Mb
-so v1.0 scale, one row equals 3.3 Mb, full line = 20 Mb
-sk Kilobyte scale, one row equals 40 Kb
Screen: -vb -vc -vr[c] -vi# -vj# alters the screen output.
-vb Black and white output to standard output. The output can
be piped or directed to files with | and > .
-vc Color output with direct video. Default.
-vr[c] Change block character to [c]. Default is -vr▒ .
-vi# Change block color to #. Default is -vi10 .
-vj# Change scale color to #. Default is -vi2 .
Other :
-p more, pause after every 25 lines
-P No more, default
-l Raw list, list name and size for further processing. The
list is sent to standard output and can be piped to other
programs. The format is DIRNAME+tab+size+CR. All screen
and scale parameters will be ignored.
-h -? Brief help
Examples:
DZ -u -vb -vr* Gives a none color, unsorted figure with
bars drawn with stars.
DZ -vb > lpt1: Sends the figure to LPT1.
Environment string:
You can set options in the DZPARAMS environ string to override
the default settings.
SET DZPARAMS=-r -vb This command will set reversed sorting
and no color to default.
SET DZPARAMS= This will restore default settings.
You can put the SET DZPARAMS=... in your AUTOEXEC.BAT.
Commandline parameters overrides DZPARAMS parameters.
Bugs:
No bugs, I think, but...
1 Max 255 subdirectories in every directory is allowed
2 LONGNAME.DIR will be truncated to LONGNAME.
History:
v1.0 Winter 1993 First version!
v2.0 Spring 1994 New: autoscale, help, raw list options.
v3.0 94-10-22 New: color / bw switch, output with more,
DZPARAMS.
v3.01 94-10-23 CR at end of lines instead of line wrap.
v3.02 94-11-19 Fixed some bugs
v3.1 94-12-03 New: / or -, -Cx, -sA
Fixed: Line overflow with directory
names like LONGNAME.DIR .
v3.2 94-12-19 New: -vb,-vc,-vr[c],-vi#,-vj#,-P
Fixed: Autoscale -sA will now choose an even
better scale than in 3.1 .
Notes:
Free for all to use and copy!
Use on your own risk.
DZ was programmed in C.
You can report bugs and ideas by e-mail to me:
fred-hol@dsv.su.se
or mail to
Fredrik Holmberg
Tornrosvagen 20
182 75 Stocksund
Sweden
// Fredrik Holmberg 1994